<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});
//后台路由组
Route::group(['middleware'=>'Alogin'],function(){
    //后台首页
    Route::get('/admin/index','Admin\AdminController@index');


});
// //后台分类
Route::controller('/admin/cate','Admin\CateController');
//后台活动
Route::controller('/admin/activity','Admin\ActivityController');
//后台式神
Route::controller('/admin/shisheng','Admin\ShishengController');
//友情链接
Route::controller('/admin/youqing','Admin\YouqingController');
//网站配置
Route::controller('/admin/peizhi','Admin\peizhiController');
// //后台用户管理
Route::controller('/admin/user','Admin\UserController');
//后台攻略添加
Route::controller('/admin/glue','Admin\QwController');
//后台广告
Route::controller('/admin/ggao','Admin\PostController');
//后台登录
Route::get('/admin/login','Admin\LoginController@Login');
Route::post('/admin/dologin','Admin\LoginController@doLogin');

Route::get('/vcode','Admin\LoginController@creatyzm');

//前台
//前台首页
Route::get('/home/index','Home\HomeController@index');
//前台活动详情
Route::controller('/home/activity','Home\HomeController');